FIND_PACKAGE(VTK)
APPLY_VTK_FLAGS()
# mitkGL.h is in Core/Rendering :(
FIND_PACKAGE(OpenGL)
IF(NOT OPENGL_FOUND)
  MESSAGE("GL is required for MITK rendering")
ENDIF(NOT OPENGL_FOUND )
INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})
INCLUDE_DIRECTORIES(../ipPic ${VTK_INCLUDE_DIRS})

ADD_LIBRARY(IIL4MITK ${MITK_WIN32_FORCE_STATIC} image.cpp  item.cpp  picimage.cpp  texture.cpp)
TARGET_LINK_LIBRARIES(IIL4MITK ${OPENGL_LIBRARIES} ${IPPIC_LIBRARIES})
MITK_CREATE_MODULE_CONF(IIL4MITK
  DEPENDS mitkIpPic
)

